Intent Map CDN

User behavior analytics and heatmap tracking

🚀 Quick Start

Add this script to your website's <head> section:

<script>
window.IntentMapConfig = {
    apiEndpoint: 'https://your-api-server.com/api',
    trackingEnabled: true,
    trackClicks: true,
    trackScrolls: true,
    trackMousemove: false,
    debug: false
};
</script>
<script src="https://your-cdn-url.com/client-snippet/index.js"></script>

📁 Available Scripts

Tracking Script

/client-snippet/index.js

Main tracking script for capturing user interactions

View Script

Heatmap Overlay

/heatmap-overlay/overlay.js

Interactive heatmap overlay for visualizing data

View Script

🔧 Configuration Options

window.IntentMapConfig = {
    // API Configuration
    apiEndpoint: 'https://your-api-server.com/api',
    
    // Tracking Options
    trackingEnabled: true,      // Master switch
    trackClicks: true,          // Track mouse clicks
    trackScrolls: true,         // Track scroll events
    trackMousemove: false,      // Track mouse movement (high volume)
    
    // Performance Settings
    batchSize: 10,              // Events per batch
    flushInterval: 5000,        // Send interval (ms)
    
    // Development
    debug: false,               // Console logging
    autoInit: true              // Auto-start tracking
};

🔥 Heatmap Bookmarklet

Drag this link to your bookmarks bar to overlay heatmaps on any page:

javascript:(function(){var script = document.createElement('script');script.src = 'https://your-cdn-url.com/heatmap-overlay/overlay.js';script.setAttribute('data-auto-init', 'true');document.head.appendChild(script);})();
🔥 Intent Map Overlay

📊 What Gets Tracked

No personally identifiable information (PII) is collected by default.

`; navigator.clipboard.writeText(code).then(() => { alert('📋 Tracking code copied to clipboard!'); }); } function copyBookmarklet() { const code = document.getElementById('bookmarklet-code').textContent; navigator.clipboard.writeText(code).then(() => { alert('📋 Bookmarklet copied to clipboard!'); }); } // Auto-update URLs on page load updateWithCurrentURL();